package me.liuhui.mall.repository.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import me.liuhui.mall.repository.model.Role;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 * 后台用户角色表 Mapper 接口
 * </p>
 *
 * @author liuhui
 * @since 2023-04-06
 */
@Mapper
public interface RoleMapper extends BaseMapper<Role> {
    List<Long> selectPermissionIds(Long id);

    List<Role> selectRoleByAdminId(Long adminId);

}
